<?php
// +----------------------------------------------------------------------
// | 微信小程序配置
// +----------------------------------------------------------------------

return [
    // 小程序配置
    'mini_program' => [
        'default' => [
            'app_id'  => env('WECHAT_MINI_PROGRAM_APPID', ''),
            'secret'  => env('WECHAT_MINI_PROGRAM_SECRET', ''),
            'token'   => env('WECHAT_MINI_PROGRAM_TOKEN', ''),
            'aes_key' => env('WECHAT_MINI_PROGRAM_AES_KEY', ''),
        ],
    ],


    // 日志配置
    'log' => [
        'default' => 'dev', // dev, prod
        'channels' => [
            'dev' => [
                'driver' => 'single',
                'path' => runtime_path() . 'log' . DIRECTORY_SEPARATOR . 'wechat.log',
                'level' => 'debug',
            ],
        ],
    ],
    'user_token' => [
        'expire_duration' => 3600 * 8,//用户token过期时长(单位秒）
        'be_expire_duration' => 3600,//用户token临时过期前时长，自动续期
    ],
];
   